#pragma once
#include "afxwin.h"


// CProjectManage dialog

class CProjectManage : public CDialogEx
{
	DECLARE_DYNAMIC(CProjectManage)

public:
	CProjectManage(CWnd* pParent, const CMeasureSolution &sln);   // standard constructor
	virtual ~CProjectManage();

// Dialog Data
	enum { IDD = IDD_PROJECT_MANAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

public:
  virtual BOOL OnInitDialog();

public:
  afx_msg void OnProjectListSelchange();

	DECLARE_MESSAGE_MAP()

public:
  tstring NameOfProjectToDelete(void) { return project_name_.GetBuffer(0); }

private:
  const CMeasureSolution& solution_;
  CString project_name_;
  CString project_directory_;
  int selected_project_index_;

  CListBox wnd_project_list_;
  CButton wnd_project_delete_;
};
